package com.dst.smart.json;

import java.io.File;
import org.json.JSONObject;

import com.dst.smart.app.MyApplication;
import com.dst.smart.model.RootPath;
import com.dst.smart.model.WeatherInfo;

import android.text.TextUtils;

public class WeatherUtils {

	public static WeatherInfo weatherInfo = null;

	public static WeatherInfo getWeatherInfo() {

		if(weatherInfo==null){
			weatherInfo=new WeatherInfo();
			weatherInfo.setAirQuality("");
			weatherInfo.setCity("");
			weatherInfo.setAirData(0);
			weatherInfo.setDateLong(0);
			weatherInfo.setExp("");
			weatherInfo.setHumidity("");
			weatherInfo.setPm25("");
			weatherInfo.setTemp(0);
			weatherInfo.setTempRange("");
			weatherInfo.setLastUpdateTime("");
		}
		return weatherInfo;
	}

	public static void setWeatherInfo(WeatherInfo weatherInfo) {
		WeatherUtils.weatherInfo = weatherInfo;
	}

}
